﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="preview.aspx.cs" Inherits="GDIT.page.manage.notice.preview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>通知预览</title>
    <link href="../../../css/m_preview.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">





<div class="center">
    <div class="operate">
        <ul>
            <li><a href="editor.aspx">写新通知</a></li>
            <li><asp:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click">开启编辑器</asp:LinkButton></li>
            <li><asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_Click">删除此通知</asp:LinkButton></li>
        </ul>
    </div>
    <!--下面的div用于显示通知-->
    <div id="article" name="article" class="article" runat="server">
        <asp:Literal ID="BulletinLiteral" runat="server"></asp:Literal>
    </div>
</div>


<div>
    <asp:TextBox ID="txtId" runat="server" CssClass="id"></asp:TextBox>
    <asp:TextBox ID="txtType" runat="server" CssClass="type"></asp:TextBox>
</div>


<script type="text/javascript">
    function Ready() {
        var txtId; //隐藏通知id的控件
        var allEvents = document.getElementsByTagName("*");
        for (var i = 0; i < allEvents.length; i++) {
            if (allEvents[i].className == "id") {
                txtId = allEvents[i];
            }
        }
        txtId.parentNode.style.display = "none";
    }

    Ready();

</script>

</form>
</body>
</html>
